from py2neo import *
from pprint import pprint
import re
if __name__ == '__main__':
    # graph = Graph("http://localhost:7474", auth=("neo4j", "neo4j"))
    # graph.delete_all()

    # res = graph.run("match (n:people) return n")
    # pprint(res.to_ndarray())
    #
    # res = graph.run("match (n:people),(m:company) return n,m")
    # pprint(res.to_data_frame())
    #
    # # res = graph.run("match (n:people),(m:company) return n,m")
    # # pprint(res.to_table())

    # target = "aaa\\nbbb"
    # # print(target)
    #
    # with open("newline.txt","r",encoding="utf8") as f:
    #     # line = f.readline()
    #     # lline = re.sub("\\\\","==",line)
    #     # print(line)
    #     # print(lline)
    #
    content = "a\\nb"
    re.sub('\\\\n', '\n', content)
    print(content)

